#include <iostream>
using namespace std;

class Calculate
{
	private :
		int m_a;
		int m_b;

	public :
		Calculate(int a, int b) : 
			m_a(a), m_b(b)
		{
			cout << "Calculate init()" << endl; 
		}

		int sum(int a, int b)
		{
			return (a + b);
		}

		int sub(int a, int b)
		{
			return (a - b);
		}

		int mult(int a, int b)
		{
			return (a * b);
		}

		int div(int a, int b)
		{
			if(0 == b)
				return -1;
			else
				return (a / b);
		}
	protected :
};

int main()
{
	Calculate c(1,2);
	cout << "Please input two numbers :" << endl;
	
	cout << "sum  = " << c.sum(1, 2) << endl;
	cout << "sub  = " << c.sub(2, 1) << endl;
	cout << "mult = " << c.mult(2, 1) << endl;
	cout << "div  = " << c.div(1, 2) << endl;
}
